package com.wpml.netty.nio.multi;

/**
 * @Description server测试主类
 * @Date 2021-07-17
 * @Author wangpei
 **/
public class ServerMain {

    public static void main(String[] args) {
        // 只负责监听注册
        WorkerGroup boss = new WorkerGroup(1);
        // 负责实际IO处理
        WorkerGroup worker = new WorkerGroup(2);
        // 设置工作线程
        boss.setWorkerGroup(worker);

        boss.bind(9090);
    }
}
